Skip to content

Conversation

@olstakh
Copy link
Contributor

@olstakh olstakh commented Sep 20, 2025

Use analyzers in the repository to generate SerializationInitAssembly attribute for current consumers

@olstakh olstakh requested a review from a team as a code owner September 20, 2025 19:04
Copilot AI review requested due to automatic review settings September 20, 2025 19:04
@github-actions github-actions bot added the ML: Core Tags changes to core libraries label Sep 20, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds automated assembly attribute generation using code analyzers to replace manual assembly attribute declarations for serialization initialization across multiple extension projects.

  • Adds [SerializationInit] attributes to SerializationInit classes in Teams and SharePoint extensions
  • Integrates Microsoft.Agents.Core.Analyzers project references to generate assembly attributes automatically
  • Removes manual SerializationInitAssembly attributes from AssemblyInfo.cs files

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Microsoft.Agents.Extensions.Teams/Serialization/SerializationInit.cs Added [SerializationInit] attribute to enable analyzer-based assembly attribute generation
Microsoft.Agents.Extensions.Teams/Microsoft.Agents.Extensions.Teams.csproj Added analyzer project reference and debug configuration for generated files
Microsoft.Agents.Extensions.Teams/AssemblyInfo.cs Removed manual SerializationInitAssembly attribute declaration
Microsoft.Agents.Extensions.SharePoint/Serialization/SerializationInit.cs Added [SerializationInit] attribute to enable analyzer-based assembly attribute generation
Microsoft.Agents.Extensions.SharePoint/Microsoft.Agents.Extensions.SharePoint.csproj Added analyzer project reference and debug configuration for generated files
Microsoft.Agents.Extensions.SharePoint/AssemblyInfo.cs Removed manual SerializationInitAssembly attribute declaration
Microsoft.Agents.Core/Microsoft.Agents.Core.csproj Updated analyzer project reference to include PrivateAssets="all"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

tracyboehrer
tracyboehrer previously approved these changes Sep 30, 2025
@tracyboehrer tracyboehrer merged commit 702422b into main Nov 6, 2025
8 checks passed
@tracyboehrer tracyboehrer deleted the users/olstakh/use-analyzer branch November 6, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ML: Core Tags changes to core libraries ML: Packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants